package com.hb.B_面向对象.枚举

enum class AuroraCloneRetCode(var code:Int) {
    OK(20000),
    ERROR(20001),
}

fun main() {
    println(Number.ONE.num)
    println(AuroraCloneRetCode.ERROR.code)
}

enum class Number (var num : Int){

    ONE(1),
    TWO(2)

}